package org.example.service;

import org.example.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.form.SearchForm;
import org.example.form.StudentForm;
import org.example.vo.PageVO;
import org.example.vo.StudentVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2024-10-31
 */
public interface StudentService extends IService<Student> {
    Boolean saveStudent(Student student);
    PageVO list(Integer page, Integer size);
    PageVO search(SearchForm searchForm);
    Boolean updateById(StudentForm studentForm);
    Boolean deleteById(Integer id);

    List<Student> findStudentByDormitoryId(int dormitoryId);
}
